package com.doctcloud.hisinfo.api;

import com.doctcloud.common.core.constant.ServiceNameConstants;
import com.doctcloud.hisinfo.api.factory.RemoteHisInpBillServiceFallbackFactory;
import com.doctcloud.hisinfo.histable.domain.inpbill.InpBillDetailDo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "remoteInpBillService", value = ServiceNameConstants.HIS_INPBILL_SERVICE, fallbackFactory = RemoteHisInpBillServiceFallbackFactory.class)
public interface RemoteHisInpBillService {
    @GetMapping("/inpbill/inpbilldetail/listbypat")
    public List<InpBillDetailDo> listByPat(@RequestParam("patientId")String patientId,
                                              @RequestParam("visitId")Integer visitId);
}
